package org.com.db.exception;

public class DBException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String code;
	private String contet;
	private String message;
	
	public DBException(DBMSG msg){
		this.code = msg.getCode();
		this.contet = msg.getContent();
		this.message="";
	}
	public DBException(DBMSG msg,String m1){
		this.code = msg.getCode();
		this.contet = msg.getContent();
		this.message=m1;
	}
	

	public DBException(String code, String content) {
		this.code = code;
		this.contet = content;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getContet() {
		return contet;
	}

	public void setContet(String contet) {
		this.contet = contet;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}

}
